//
//  EnrollTextFieldView.h
//  练习_12.01_
//
//  Created by rimi1 on 2016/12/1.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Adaption.h"

typedef void(^EndEdit)();

@interface EnrollTextFieldView : UIView

@property (nonatomic, strong) UILabel *title;
@property (nonatomic, strong) UILabel *error;
@property (nonatomic, strong) UITextField *textField;
@property (nonatomic, strong) UIImageView *tureOrFalse;
@property (nonatomic, assign) NSInteger maxLength;
@property (nonatomic, copy) EndEdit endEdit;// 当结束编辑时，调用

// 固定高了，外面填的高没用
- (instancetype)initWithFrame:(CGRect)frame
                        title:(NSString *)title
                  placeholder:(NSString *)placeholder
                        error:(NSString *)error;
// 出现错和对图片(YES则是对，NO则是错)
- (void)showImageWithTure:(BOOL)ture;
// 出现错误提示文字(YES显示，NO消失)
- (void)showErrorWithTure:(BOOL)ture;

@end
